import TipInfo from '../../../components/Tip'
import { connect } from 'dva'

const Tip = ({dispatch}) => {
  const tipData = {
    tipType: 'success',
    titleBig: '基本信息修改成功',
    buttonData:{
      content: '返回',
      act: () => {
        dispatch({
          type: 'modules/getModules',
          payload: {
            title: '基本信息修改',
            process: 'baseInfoModify',
            businessId: '1231241229',
            pathname: '',
            tokenId: 'test',
          }
        })
      }
    }
  }
  return (
    <TipInfo {...tipData}></TipInfo>
  )
}

export default connect(state => state.baseInfoModify)(Tip)

